﻿using System;
using System.Reflection;

namespace YJKCopyModel
{
	[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
	public class ProgressBarAttribute : Attribute
	{
		public string UseText { get; set; }

		public static string GetAttributeText(object inputObject)
		{
			bool flag = inputObject == null;
			string result;
			if (flag)
			{
				result = null;
			}
			else
			{
				Type type = inputObject.GetType();
				ProgressBarAttribute progressBarAttribute = type.GetCustomAttribute(typeof(ProgressBarAttribute)) as ProgressBarAttribute;
				bool flag2 = progressBarAttribute != null;
				if (flag2)
				{
					result = progressBarAttribute.UseText;
				}
				else
				{
					result = null;
				}
			}
			return result;
		}
	}
}
